home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20031118-20041115 / 000228_kramer@eig.com_Tue Apr 20 10:46:16 2004.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Path: newsmaster.cc.columbia.edu!panix!newsxfer.eecs.umich.edu!lenny.tc.umn.edu!msc1.onvoy!ply1.onvoy!onvoy.com!feed.news.qwest.net!news.uswest.net.POSTED!not-for-mail
  2. From: Kramer <kramer@eig.com>
  3. Subject: Re: Kermit-C and logging
  4. Newsgroups: comp.protocols.kermit.misc
  5. References: <oRwfc.343$kb.20640@news.uswest.net> <slrnc7tae8.4fi.fdc@sesame.cc.columbia.edu>
  6. Lines: 50
  7. User-Agent: KNode/0.7.2
  8. MIME-Version: 1.0
  9. Content-Type: text/plain; charset=us-ascii
  10. Content-Transfer-Encoding: 7Bit
  11. Message-ID: <Cmahc.6$C73.7321@news.uswest.net>
  12. Date: Tue, 20 Apr 2004 07:22:25 -0700
  13. NNTP-Posting-Host: 206.253.219.206
  14. X-Trace: news.uswest.net 1082470946 206.253.219.206 (Tue, 20 Apr 2004 09:22:26 CDT)
  15. NNTP-Posting-Date: Tue, 20 Apr 2004 09:22:26 CDT
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14945
  17.  
  18. Frank da Cruz wrote:
  19.  
  20. > On 2004-04-15, root <root@sbic.com> wrote:
  21. > : I'm trying to log the call records for our VoIP system using Kermit. It
  22. > : works fine individually, but I have 5 seperate boxes that I telnet into
  23. > : on port 1752, the data streams through and I have Kermit grab it and
  24. > : file it into a log.
  25. > :
  26. > : It's a LOT cheaper than any call logging program out there and it works
  27. > : great. The problem I have however is that I can't get my linux box to
  28. > : automatically run these 5 seperate kermit sessions on boot. I'm using
  29. > : Red Hat Enterprise and I also want to be able to monitor these sessions
  30. > : with Big Brother.
  31. > :
  32. > What's the problem?  You can start up one process on boot, but not five?
  33. > Or you can't start up any processes on boot?
  34. > In the latter case, there is always the possibility that Kermit is
  35. > trying to print some message to standard output, when there is no standard
  36. > output (this should not happen, but it's possible).  In that case, part
  37. > of your Kermit invocation should be to redirect standard output to a file
  38. > or to /dev/null.
  39. > Do you want all five processes to log to the same file?  Kermit is not
  40. > designed for that, but it can still be done with some creative script
  41. > programming.  Basically, you need your script to not just blindly log
  42. > the incoming stream to a file, but to parse it looking for records
  43. > (lines or whatever), and then when it gets one, open the log file for
  44. > exclusive append access (and if fail, keep trying until it succeeds),
  45. > write out the record, close the file.  You might also want to put
  46. > timestamps and session signatures on each record, in case they don't
  47. > already have these.
  48. > - Frank
  49.  
  50. Thanks for the fast response Frank!
  51.  
  52. I'm actually looking to start 5 processes at boot but I don't know how to
  53. get that done. Do I put the kermit config file in init.d or rc.d? Also, I
  54. just need to log to 5 seperate files, don't need to dump them all into one.
  55.  
  56. One other problem I have noticed is that I can't seem to keep kermit
  57. attached to my VoIP box if the box loses communication for a few minutes
  58. like during a reboot. When the box comes back up the stream from it
  59. continues automatically but my local kermit box disconnects. Is there a
  60. keep alive command that I can use?
  61.  
  62. Thanks again,
  63.  
  64. Kramer